from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from apps.food.views import Detail, Recommend, ListByCategory, ListByKeyName, FoodComment, FoodCommentLike

urlpatterns = [
    url(r'^cook/detail/$', Detail.as_view()),
    url(r'^cook/recommend/(?P<pk>\d+)/$', Recommend.as_view()),
    url(r'^cook/listByKeyname/$', ListByKeyName.as_view()),
    url(r'^cook/listByCategory/(?P<pk>\d+)/$', ListByCategory.as_view()),
    url(r'^cook/comment/(?P<pk>\d+)/$', FoodComment.as_view()),
    url(r'^cook/comment/like/(?P<pk>\d+)/$', FoodCommentLike.as_view()),
]

# router = DefaultRouter()
# router.register('cook/category', Cook_Category)
# urlpatterns += router.urls
